package com.lin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林伟鸿
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ProjectInviteTalents implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "invite_id",type = IdType.AUTO)
    private Integer inviteId;

    @NotNull(message = "邀请加入的项目Id不能为空")
//    @Pattern(regexp = "^[0-9]*$",message = "项目Id格式不正确")
    private Integer projectId;

    private Integer groupId;
//    @JsonIgnore
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @NotNull(message = "邀请目标用户Id不能为空")
    private Integer userId;

    /**
     * 0=同意，1=拒绝
     */
    private Integer type;
}
